package com.lichongbing.lyoggl.mapper;

import com.lichongbing.lyoggl.model.LyogglUsers;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.lichongbing.lyoggl.model.LyogglUsers
 */
@Component
public interface LyogglUsersMapper extends BaseMapper<LyogglUsers> {
    List<LyogglUsers> mySelectMap(Map<String, Object> param);

    LyogglUsers findByUsername(String userid);
    @Select("select istoken from lyoggl_users where id = #{userid}")
    String isToken(String userid);
    @Select("select push_token from lyoggl_users where id = #{userid}")
    String getPushToken(String userid);
    @Select("select distinct isOpen from config ")
    int getConfiguration();
}
